package ru.pb.game.network.engine.client.packets.sendable;

import ru.pb.game.network.engine.client.packets.GameServerToClientPacket;
import ru.pb.game.network.engine.client.packets.receivable.opcode_3855_REQ.ResInfo;
import ru.pb.game.objects.model.players.Player;

/**
 * Пакет воскрешения игрока
 * 
 * @author DarkSkeleton, Felixx
 * @version: 1.00
 */
public class opcode_3856_ACK extends GameServerToClientPacket
{
	Player _p;
	private ResInfo _info;

	public opcode_3856_ACK(ResInfo info, Player p)
	{
		_info = info;
		_p = p;
	}

	public opcode_3856_ACK()
	{}

	@Override
	public void writeImpl()
	{
		writeH(3856);
		writeD(_p.getSlot()); // есть ли бой?
		writeD(1);
		writeD(1);
		writeD(_info.$first);
		writeD(_info.$second);
		writeD(_info.$third);
		writeD(_info.$fourth);
		writeD(_info.$fifth);
		writeD(_info.$id);
		writeB(new byte[] {0x64, 0x64, 0x64, 0x64, 0x64, 0x01});
		writeD(_info.$red);
		writeD(_info.$blue);
		writeD(_info.$head);
		writeD(_info.$beret);
		writeD(_info.$dino);

	}
}